package com.yidu.ladder.system.domain;

import java.util.Date;

/**
 * 日志包装类
 * @author bamboo
 *
 */
public class LogVo {
	/**
	 * 日志Id
	 */
	private Integer logId;
	/**
	 * 用户Id
	 */
	private String userId;
	/**
	 * 用户名
	 */
	private String userName;
	/**
	 * 操作时间
	 */
	private String operateEvent;
	/**
	 * 操作类型
	 */
	private String operateType;
	/**
	 * 操作结果
	 */
	private String operateResult;
	/**
	 * 操作时间
	 */
	private Date operateTime;
	/**
	 * 主机
	 */
	private String host;
	/**
	 * 开始操作时间
	 */
	private Date startTime;
	/**
	 * 结束操作时间
	 */
	private Date endTime;
	/**
	 * 页面
	 */
	private Integer page;
	/**
	 * 页面大小
	 */
	private Integer limit;
	
	/**
	 * 空的构造方法
	 */
	public LogVo() {
		
	}
	/**
	 * 日志所有属性的构造方法
	 * @param logId 日志Id
	 * @param userId 用户Id
	 * @param userName 用户名
	 * @param operateEvent 操作事件
	 * @param operateType 操作类型
	 * @param operateResult 操作结果
	 * @param operateTime 操作时间
	 * @param host 主机
	 * @param startTime 开始时间
	 * @param endTime 结束时间
	 * @param page 页面
	 * @param limit 大小
	 */
	public LogVo(Integer logId, String userId, String userName, String operateEvent, String operateType,
			String operateResult, Date operateTime, String host, Date startTime, Date endTime, Integer page,
			Integer limit) {
		super();
		this.logId = logId;
		this.userId = userId;
		this.userName = userName;
		this.operateEvent = operateEvent;
		this.operateType = operateType;
		this.operateResult = operateResult;
		this.operateTime = operateTime;
		this.host = host;
		this.startTime = startTime;
		this.endTime = endTime;
		this.page = page;
		this.limit = limit;
	}


	public Integer getLogId() {
		return logId;
	}



	public void setLogId(Integer logId) {
		this.logId = logId;
	}


	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getOperateEvent() {
		return operateEvent;
	}

	public void setOperateEvent(String operateEvent) {
		this.operateEvent = operateEvent;
	}
	
	public String getOperateType() {
		return operateType;
	}

	public void setOperateType(String operateType) {
		this.operateType = operateType;
	}

	public String getOperateResult() {
		return operateResult;
	}

	public void setOperateResult(String operateResult) {
		this.operateResult = operateResult;
	}

	public Date getOperateTime() {
		return operateTime;
	}

	public void setOperateTime(Date operateTime) {
		this.operateTime = operateTime;
	}

	public String getHost() {
		return host;
	}

	public void setHost(String host) {
		this.host = host;
	}

	public Integer getPage() {
		return page;
	}

	public void setPage(Integer page) {
		this.page = page;
	}

	public Integer getLimit() {
		return limit;
	}

	public void setLimit(Integer limit) {
		this.limit = limit;
	}
	

	
	

	public Date getStartTime() {
		return startTime;
	}



	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}



	public Date getEndTime() {
		return endTime;
	}



	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	
	
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((endTime == null) ? 0 : endTime.hashCode());
		result = prime * result + ((host == null) ? 0 : host.hashCode());
		result = prime * result + ((limit == null) ? 0 : limit.hashCode());
		result = prime * result + ((logId == null) ? 0 : logId.hashCode());
		result = prime * result + ((operateEvent == null) ? 0 : operateEvent.hashCode());
		result = prime * result + ((operateResult == null) ? 0 : operateResult.hashCode());
		result = prime * result + ((operateTime == null) ? 0 : operateTime.hashCode());
		result = prime * result + ((operateType == null) ? 0 : operateType.hashCode());
		result = prime * result + ((page == null) ? 0 : page.hashCode());
		result = prime * result + ((startTime == null) ? 0 : startTime.hashCode());
		result = prime * result + ((userId == null) ? 0 : userId.hashCode());
		result = prime * result + ((userName == null) ? 0 : userName.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		LogVo other = (LogVo) obj;
		if (endTime == null) {
			if (other.endTime != null)
				return false;
		} else if (!endTime.equals(other.endTime))
			return false;
		if (host == null) {
			if (other.host != null)
				return false;
		} else if (!host.equals(other.host))
			return false;
		if (limit == null) {
			if (other.limit != null)
				return false;
		} else if (!limit.equals(other.limit))
			return false;
		if (logId == null) {
			if (other.logId != null)
				return false;
		} else if (!logId.equals(other.logId))
			return false;
		if (operateEvent == null) {
			if (other.operateEvent != null)
				return false;
		} else if (!operateEvent.equals(other.operateEvent))
			return false;
		if (operateResult == null) {
			if (other.operateResult != null)
				return false;
		} else if (!operateResult.equals(other.operateResult))
			return false;
		if (operateTime == null) {
			if (other.operateTime != null)
				return false;
		} else if (!operateTime.equals(other.operateTime))
			return false;
		if (operateType == null) {
			if (other.operateType != null)
				return false;
		} else if (!operateType.equals(other.operateType))
			return false;
		if (page == null) {
			if (other.page != null)
				return false;
		} else if (!page.equals(other.page))
			return false;
		if (startTime == null) {
			if (other.startTime != null)
				return false;
		} else if (!startTime.equals(other.startTime))
			return false;
		if (userId == null) {
			if (other.userId != null)
				return false;
		} else if (!userId.equals(other.userId))
			return false;
		if (userName == null) {
			if (other.userName != null)
				return false;
		} else if (!userName.equals(other.userName))
			return false;
		return true;
	}
	
	@Override
	public String toString() {
		return "LogVo [logId=" + logId + ", userId=" + userId + ", userName=" + userName + ", operateEvent="
				+ operateEvent + ", operateType=" + operateType + ", operateResult=" + operateResult + ", operateTime="
				+ operateTime + ", host=" + host + ", startTime=" + startTime + ", endTime=" + endTime + ", page="
				+ page + ", limit=" + limit + "]";
	}



	
}
